﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OAWeb.Models
{
    public class Teacher
    {
        public int ID { get; set; }
        [Required(ErrorMessage = "请输入你的姓名")]
        [Display(Name = "姓名")]
        public string Name { get; set; }
        [Required(ErrorMessage = "请输入你的性别")]
        [Display(Name = "性别")]
        public string Sex { get; set; }
        [Required(ErrorMessage = "请输入你的出生日期")]
        [Display(Name = "出生日期")]
        [DataType(DataType.Date)]
        public DateTime BornDate { get; set; }
        public Department Department { get; set; }
        public int DepartmentID { get; set; }
        [Required(ErrorMessage = "请输入你的学位")]
        [Display(Name = "学位")]
        public string Degree { get; set; }
        public List<TeachingClass> TeachingClass { get; set; }

    }
}